import java.util.ArrayList;

/**
 * Query dates and times tables
 * */
public class DateTimeTable {
	ArrayList<String> daysArr = new ArrayList<String>();
	ArrayList<String> timesArr = new ArrayList<String>();

	public DateTimeTable() {

	}

	public ArrayList<String> SetUpDaysTable() {
		daysArr.clear();

		daysArr.add("sunday");
		daysArr.add("monday");
		daysArr.add("tuesday");
		daysArr.add("wednesday");
		daysArr.add("thursday");
		daysArr.add("friday");
		daysArr.add("saturday");

		return daysArr;
	}

	public ArrayList<String> SetUpTimeTable() {
		int i = 0;
		int interval_min = 30;

		int hour = 00;
		int min = 00;
		String hourStr = "00";
		String minuteStr = "00";

		while (hour < 24) {

			if (min < 60) {
				if (min < 10) {
					minuteStr = "0" + min;
				} else {
					minuteStr = "" + min;
				}
			} else if (min == 60) {
				min = 0;
				hour = hour + 1;
				if (hour < 10) {
					hourStr = "0" + hour;
				} else {
					hourStr = "" + hour;
				}
				minuteStr = "0" + min;
			}
			min = min + interval_min;
			String timeStr = String.format("%s:%s:00", hourStr, minuteStr);
			timesArr.add(timeStr);
			// System.out.println(timeStr);
		}
		return timesArr;

	}

}
